const express = require('express')
const contact = express.Router()
const { getContact, getPageContact, getIDContact, postAddContact, postUpdateContact,postDeleteContact } = require('../../service/contact/contactService')

//获取招聘信息
contact.get('/',getContact)

//分页获取找信息
contact.get('/page',getPageContact)

//ID获取招聘信息
contact.get('/id',getIDContact)

//增加招聘信息
contact.post('/add',postAddContact)

//修改招聘信息
contact.post('/update',postUpdateContact)

//删除招聘信息
contact.post('/delete',postDeleteContact)

module.exports = contact